import { createRouter, createWebHistory } from 'vue-router'
import HomeView from '../views/HomeView.vue'

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
		// 主页面
      path: '/home',
      name: 'home',
      component: HomeView,
	  
    },
	{
		// 登录
	  path: '/',
	  name: 'mylogin',
	  component: () => import('../views/MyloginView.vue'),
	  
	},
	
    {
		// 分析路由
      path: '/about',
      name: 'about',
      // route level code-splitting
      // this generates a separate chunk (About.[hash].js) for this route
      // which is lazy-loaded when the route is visited.
      component: () => import('../views/AboutView.vue'),
    },
	{
		// 用户路由
	  path: '/user',
	  name: 'user',
	  // route level code-splitting
	  // this generates a separate chunk (About.[hash].js) for this route
	  // which is lazy-loaded when the route is visited.
	  component: () => import('../views/UserView.vue'),
	},
	{
		// 查询路由
	  path: '/list',
	  name: 'list',
	  // route level code-splitting
	  // this generates a separate chunk (About.[hash].js) for this route
	  // which is lazy-loaded when the route is visited.
	  component: () => import('../views/ListView.vue'),
	},
	{
		// 卡片路由
	  path: '/listtow',
	  name: 'listtow',
	  // route level code-splitting
	  // this generates a separate chunk (About.[hash].js) for this route
	  // which is lazy-loaded when the route is visited.
	  component: () => import('../views/ListtwoView.vue'),
	},
	{
		// 服务商路由
	  path: '/service',
	  name: 'service',
	  // route level code-splitting
	  // this generates a separate chunk (About.[hash].js) for this route
	  // which is lazy-loaded when the route is visited.
	  component: () => import('../views/ServiceView.vue'),
	},
	{
		// 客户路由
	  path: '/customer',
	  name: 'customer',
	  // route level code-splitting
	  // this generates a separate chunk (About.[hash].js) for this route
	  // which is lazy-loaded when the route is visited.
	  component: () => import('../views/CustomerView.vue'),
	},
	{
		// 售后路由
	  path: '/message',
	  name: 'message',
	  // route level code-splitting
	  // this generates a separate chunk (About.[hash].js) for this route
	  // which is lazy-loaded when the route is visited.
	  component: () => import('../views/MessageView.vue'),
	},
	{
		// 邮件路由
	  path: '/email',
	  name: 'email',
	  // route level code-splitting
	  // this generates a separate chunk (About.[hash].js) for this route
	  // which is lazy-loaded when the route is visited.
	  component: () => import('../views/EmailView.vue'),
	},
	{
		// 商品分析路由
	  path: '/analysis',
	  name: 'analysis',
	  // route level code-splitting
	  // this generates a separate chunk (About.[hash].js) for this route
	  // which is lazy-loaded when the route is visited.
	  component: () => import('../views/AnalysisView.vue'),
	},
	{
		// 商品分析路由
	  path: '/order',
	  name: 'order',
	  // route level code-splitting
	  // this generates a separate chunk (About.[hash].js) for this route
	  // which is lazy-loaded when the route is visited.
	  component: () => import('../views/OrderView.vue'),
	},
	{
		// 在售商品路由
	  path: '/sell',
	  name: 'sell',
	  // route level code-splitting
	  // this generates a separate chunk (About.[hash].js) for this route
	  // which is lazy-loaded when the route is visited.
	  component: () => import('../views/SellView.vue'),
	},
	{
		// 在售商品路由
	  path: '/settings',
	  name: 'settings',
	  // route level code-splitting
	  // this generates a separate chunk (About.[hash].js) for this route
	  // which is lazy-loaded when the route is visited.
	  component: () => import('../views/SettingsView.vue'),
	},
	
	
	
	
  ],
})

export default router
